class Person:
    def __init__(self, name, weight):
        """
        初始化
        :param name: 名称
        :param weight: 体重
        """
        self.name = name
        self.weight = weight

    def __str__(self):
        return '我是%s我的体重剩余%.2f' % (self.name, self.weight)

    def run(self):
        # 跑步减去0.5公斤
        self.weight -= 0.5

    def eat(self):
        self.weight += 1


xiaoming = Person('小明', 80)
xiaoming.run()
xiaoming.eat()
print(xiaoming)

xiaomei = Person("小美",45)
xiaomei.run()
xiaomei.eat()
print(xiaomei)